export const object={
	
	copyValueFromBig(obj,bigObj){
		
		console.log(obj,bigObj)
		
		for (var i = 0; i < Object.keys(obj).length; i++) {
			
			for (var j = 0;j < Object.keys(bigObj).length; j++) {
				
				console.log(Object.keys(obj)[i],Object.keys(bigObj)[j])
				
				if(Object.keys(obj)[i]==Object.keys(bigObj)[j] && bigObj[Object.keys(bigObj)[j]]!==null&& bigObj[Object.keys(bigObj)[j]]!==undefined){
					
					
					obj[Object.keys(obj)[i]] = bigObj[Object.keys(bigObj)[j]];
					break;
				}
			}
			
		}
		
		return obj;
		
		
		
	},
	matchThenSelectByCode(codeList,objList){
		
		if(codeList){
			for (var i = 0; i < objList.length; i++) {
				 for (var j = 0; j < codeList.length;j++) {
				 	if(codeList[j]==objList[i].code){
						objList[i].select=true;
					}
				 }
			}
		}
		
		
		return objList;
		
		
	}
	
	
	
	
}